package cn.cxj.system.domain;

import cn.cxj.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 日志实体类
 * @author 陈鑫杰
 * @date 2022年1月27日16:23:20
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Log extends BaseDomain {
    private String username;
    private String description;
    private String method;
    private String url;
    private String ip;
    private Date createTime = new Date();
    private Long runtime;
    private String state;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    public Date getCreateTime() {
        return createTime;
    }
}
